package org.liuqm.factory.simplefactory;

import org.liuqm.factory.simplefactory.sevice.UserService;
import org.liuqm.factory.simplefactory.sevice.impl.UserServiceImpl;

public class SimpleFactoryTest {

    public static void main(String[] args) {
//        Print print = new BlackWhitePrint();
//        print.print();
//        Print print1 = new ColorPrint();
//        print1.print();

//        Print print=SimpleFactory.createPrint("color");
//        print.print();


        UserServiceImpl userService = new UserServiceImpl();

        userService.setUserType("UserDaoImpl");


        userService.insertUser("","");
    }
}
